<template>
  <div class="genre-container">
    <h1 class="genre-title">科研工作动态</h1>
    <h3 class="genre-stitle">
      目前，实验室主要关注谐振类DC-DC变换器、双向变换器、电池均衡以及器件的可靠性等相关内容
    </h3>
    <div class="genre-content">
      <ul class="genre-ul">
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
        <li class="shadow">
          <a href="#">
            <div
              class="img-bck"
              style="background-image: url('../../assets/img/banner.jpg')"
            >
              <span class="img-item">文章</span>
            </div>
          </a>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "Work",
};
</script>

<style lang="scss" scope>
.genre-container {
  width: 100%;
  height: 100vh;
  padding-top: 5vh;
  text-align: center;
  box-sizing: border-box;
    // background-color: goldenrod;
  .genre-title {
    color: #222;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
  }
  .genre-stitle {
    font-size: 16px;
    color: #666;
    font-weight: 200;
    text-align: center;
  }
  .genre-content {
    width: 1115px;
    min-width: 1050px;
    height: 600px;
    margin: 0 auto;
    .genre-ul {
      margin-top: 50px;
      height: 100%;
      list-style: none;
      box-sizing: border-box;
      //   background-color: brown;
      li {
        border-radius: 8px;
        width: 328px;
        min-width: 328px;
        height: 260px;
        padding: 62px 24px 40px 32px;
        margin: 0 30px 40px 0;
        box-shadow: 0 5px 60px rgba(117, 131, 148, 0.1);
        float: left;
        box-sizing: border-box;
        transition: transform 0.4s ease;
        position: relative;
        overflow: hidden;
        background-image: url("../../assets/img/banner.jpg");
        background-position: center center;
        background-size: 100% 100%;
        background-repeat: no-repeat;

        .img-bck {
          width: 100%;
          height: 100%;
          position: absolute;
          left: 0;
          top: 0;
          margin: 0 30px 40px 0;

          .img-item {
            position: relative;
            width: 100%;
            height: 100px;
            color: rgb(238, 3, 191);
            display: inline-block;
            overflow: hidden;
            z-index: 2;
            top: 0;
            bottom: auto;
            opacity: 0;
            transform: translateY(15vw);
            transition: transform 0.6s ease-in-out,
            opacity 0.3s ease-in-out 0.5s;
            word-break: break-all;
            box-shadow: 0 0.1vw 0.2vw rgba(0, 0, 0, 0.5);
          }

          .img-item::after {
            content: "";
            background: url("../../assets/logo.png") center center / 100% 100%
              no-repeat;
            background-color: rgba(41, 43, 42, 0.253);
            background-position: center center;
            filter: blur(12px);
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: -1;
            margin: -30px;
            /*为解决元素的边缘模糊的效果减弱*/
          }
        }
        span {
          font-weight: 600;
        }
        p {
          font-size: 14px;
          color: #555;
          line-height: 20px;
        }
      }
      li::after {
        content: "";
        width: 0;
        height: 4px;
        background-color: rgba(13, 255, 235, 0.829);
        transition: width 0.5s ease;
        position: absolute;
        left: 0;
        bottom: 0;
      }
      li:hover {
        transform: translateY(-20px);
        background-size: 120% 120%;
        transition: transform 0.5s ease, background-size 0.5s ease;
      }
      li:hover::after {
        width: 100%;
      }
      li:hover .img-item {
        opacity: 1;
        transform: translateY(160px);
        transition: transform 0.8s ease-in-out, opacity 0.5s ease-in-out;
      }
      .shadow {
      }

      .shadow:hover {
        -webkit-box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
        box-shadow: 7px 7px 10px 5px rgba(0, 0, 0, 0.5);
      }
    }
  }
}
</style>
